/* 弹窗蒙层 */
.dialog-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.dialog-mask.show {
    display: flex;
}

/* 弹窗容器 */
.dialog-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dialog-mask.show .dialog-container {
    transform: scale(1);
}

/* 弹窗头部 */
.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

.dialog-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dialog-close:hover {
    background-color: #e9ecef;
    color: #333;
}

/* 弹窗主内容区 */
.dialog-body {
    padding: 20px;
    min-height: 60px;
    max-height: 400px;
    overflow-y: auto;
    color: #333;
    line-height: 1.5;
}

/* 弹窗按钮区域 */
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

.dialog-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 80px;
}

.dialog-btn:hover {
    background-color: #f5f5f5;
}

.dialog-btn-confirm {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.dialog-btn-confirm:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.dialog-btn-cancel:hover {
    border-color: #adb5bd;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .dialog-container {
        margin: 20px;
        min-width: auto;
        width: calc(100% - 40px);
    }
    
    .dialog-footer {
        flex-direction: column-reverse;
    }
    
    .dialog-btn {
        width: 100%;
    }
}
